package com.cjw.pojo.dto.livesquare;

import com.cjw.pojo.dto.database.BaseDTO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.Date;

/**
 * @create_time:2021.11.15
 * @author : cjw
 * @descripe: 生活分享列表DTO
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString
@ApiModel("我的作品生活分享DTO")
public class MyLiveShareDTO extends BaseDTO {
    @ApiModelProperty("头像")
    private String headImage;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("添加时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date addTime;

    @ApiModelProperty("内容")
    private String context;

    @ApiModelProperty("点赞标记")
    private Boolean love;

    @ApiModelProperty("收藏标记")
    private Boolean collection;

    @ApiModelProperty("收藏数")
    private Integer collectionNum;

    @ApiModelProperty("点赞数")
    private Integer loveNum;

    @ApiModelProperty("评论数")
    private Integer commentNum;

    @ApiModelProperty(value = "权限", notes = "0-公开 1-私有")
    private Integer power;
}
